Visual Instruction Set
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
Visual Instruction Set, or VIS, is a SIMD instruction set extension for SPARC V9 microprocessors developed by Sun Microsystems. There are five versions of VIS: VIS 1, VIS 2, VIS 2+, VIS 3 and VIS 4.cite-ref-1[1]
Contents
• History
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
History
VIS 1 was introduced in 1994 and was first implemented by Sun in their UltraSPARC microprocessor (1995) and by Fujitsu in their SPARC64 GP microprocessors (2000).
VIS 2 was first implemented by the UltraSPARC III. All subsequent UltraSPARC and SPARC64 microprocessors implement the instruction set.
VIS 3 was first implemented in the SPARC T4 microprocessor.
VIS 4 was first implemented in the SPARC M7 microprocessor.
Differences vs x86
As with the SIMD instruction set extensions on other RISC processors, VIS strictly conforms to the main principle of RISC: keep the instruction set concise and efficient.
Functionality
VIS includes a number of operations primarily for graphics support, so most of them are only for integers. These include 3D to 2D conversion, edge processing and pixel distance.
There are four ways to use VIS in code:
• The GCC -mvis option
• Use inline assembly
• Use inline template in VSDK, similar to compiler intrinsics, which have C function like interfaces
• Use the mediaLib multimedia library, which has C function interfaces. It uses VIS on SPARC platforms (and MMX/SSE/SSE2 on x86/x64 platforms) to accelerate multimedia application execution
References
cite-note-11. ↑ citerefliang-heharlan-mcghan2005Liang He; Harlan McGhan (May 2005). "MT mediaLib for Chip MultiThreaded (CMT) Processors" (PDF). Sun Microsystems, Inc. Archived from the original (PDF) on December 30, 2006. Retrieved 2007-12-03.
• Gwennap, Linley (5 December 1995). "UltraSparc Adds Multimedia Instructions". Microprocessor Report.
• Tremblay, Marc et al. (August 1996). "VIS Speeds New Media Processing". IEEE Micro.
External links
• An introduction to SPARC’s SIMD offerings (small tutorial)
• UltraSPARC and VIS Instruction Set Extensions
• GCC SPARC VIS Built-in Functions